#ifndef CDIMMINGX_H
#define CDIMMINGX_H

#include <QObject>
#include "control/cknxcontrol.h"

class CDimmingx : public CKnxControl
{
    Q_OBJECT
public:
    explicit CDimmingx(QObject *parent = 0);
    void setKnxObject(void *xOBJECT);
    QString valueCheck(QString action,QString value);
    void execKnxAction(QString action,QString value);
    void readKnxAction();

    QString actionFromStatus(QString address,QString value);
    void execDeviceAction(QString action,QString value,QString pre_unit);
private:
    int curent_value;
    float _min,_max;
    QString _onValue,_offValue;
    QString _feedbackAddress,_feedbackDimAddress;
    QStringList _sendOnArray,_sendValueArray;

    DATA_TYPE _feedbackDataType,_feedbackDimType;
    DATA_DEFINE _feedbackValueDefine,_feedbackDimDefine;
};

#endif // CDIMMING_H
